package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.platform.dao.IFpProjectActivitiesDao;
import com.financing.platform.dto.ProjectActivitiesDTO;
import com.financing.platform.service.IFpProjectActivitiesService;

@Service("fpProjectActivitiesServiceImpl")
@Component("fpProjectActivitiesServiceImpl")
@Transactional
public class FpProjectActivitiesServiceImpl extends BaseServiceImpl implements IFpProjectActivitiesService {
	
	@Autowired
	IFpProjectActivitiesDao fpProjectActivitiesDao;

	@Override
	public int addFpProjectActivities(ProjectActivitiesDTO projectActivitiesDTO)
			throws SQLException {
		return fpProjectActivitiesDao.addFpProjectActivities(projectActivitiesDTO);
	}

	@Override
	public List<ProjectActivitiesDTO> queryProjectActivities(
			ProjectActivitiesDTO projectActivitiesDTO) throws SQLException {
		return fpProjectActivitiesDao.queryProjectActivities(projectActivitiesDTO);
	}

	@Override
	public int queryProjectActivitiesCount(
			ProjectActivitiesDTO projectActivitiesDTO) throws SQLException {
		return fpProjectActivitiesDao.queryProjectActivitiesCount(projectActivitiesDTO);
	}

	@Override
	public int updateProjectActivities(ProjectActivitiesDTO projectActivitiesDTO)
			throws SQLException {
		return fpProjectActivitiesDao.updateProjectActivities(projectActivitiesDTO);
	}
	
	
	
}
